let express = require('express');
let router = express.Router();
let login_register_modules = require('../../modules/login_regisger/index');

router
    .get('/login',function (req,res,next) {
        console.log('login')
        
    })
    .post("/login", function (req, res, next) {
        login_register_modules.loginUser(req,res,next)
    });

router
    .post('/register', function (req, res, next) {
        login_register_modules.createUser(req,res,next)
    });

module.exports = router